package com.chap5_1;

import java.util.concurrent.atomic.AtomicInteger;

/**
 * <p>
 * <code>UseAtomicInt</code>
 * </p>
 *
 * @author junbao3
 * TODO
 * @date 2023-03-28 9:39
 * Copyright (C) 2021 IFlyTek. All rights reserved.
 */
public class UseAtomicInt {
    static AtomicInteger ai = new AtomicInteger(10);

    public static void main(String[] args) {
        ai.getAndIncrement();
        ai.incrementAndGet();
        ai.addAndGet(24);
    }
}
